<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Nuova Candidatura</title>'
</h:head>
<h:body>
		<p:panel header="Inserire i dati della nuova candidatura per il partito #{partitiBean.getNomePartito(param['id'])}">
	<h:form>
			<h:panelGrid columns="2" id="regGrid">
				
				<h:outputLabel for="CV">Curriculum Vitae</h:outputLabel>
				<p:inputText id="CV" value="#{candidatureBean.candidatura2.CV}" />
				<p:message for="CV" />
<br /> 
				<h:outputLabel for="lettera">Lettera Motivazionale</h:outputLabel>
				<p:inputText id="lettera" value="#{candidatureBean.candidatura2.lettera}" />
				<p:message for="lettera" />
				
				
				
			</h:panelGrid>
		
			<p:commandButton outcome="index.html" 
					  value="Crea" update="regGrid"
			 		  action="#{candidatureBean.creaCandidatura()}">
	
			</p:commandButton>
	</h:form>
		</p:panel>
</h:body>
</html>